<template>
    <el-card>
        <info-header slot="header">
        <template slot="title">所属机构详情</template>
        </info-header>
            <div class="Selectionsss">
              <div class="left_btn">
               <el-button plain>全部</el-button>
               <el-button plain>待审批</el-button>
               <el-button plain>已通过</el-button>
               <el-button plain>未通过</el-button>
              </div>
              <div class="right_shenhe" v-show="true">
                <el-button type="success">批量通过</el-button>
                <el-button type="danger">批量不通过</el-button>
              </div>
            </div>
              <el-table :header-cell-style="{ background: '#eee', color: '#606266' }" :data="tableData"  max-height="450" style="width: 100%"
              tooltip-effect="dark"
              @selection-change="handleSelectionChange"
              >
              <el-table-column type="selection" width="55"> </el-table-column>
                <el-table-column label="教材名称" width="170%">
                  <template slot-scope="{row}">
                    <el-button
                    @click="exportBouncedsssss = true"
                      type="text"
                      size="small">
                      {{row.Organizers}}
                    </el-button>
                  </template>
                </el-table-column>
                <el-table-column label="所属机构" prop="Principal" width="190%"></el-table-column>
                <el-table-column prop="InstitutionalType" label="教材类型" width="170%"></el-table-column>
                <el-table-column prop="Institutional" label="出版社" width="210%"></el-table-column>
                <el-table-column prop="licence" label="办件类型" width="150%"></el-table-column>
                <el-table-column prop="licence" label="审批状态" width="150%"></el-table-column>
                <el-table-column prop="Licenceissued" label="申报时间" width="170%"></el-table-column>
              </el-table>
              <!-- 分页 -->
                <el-row
                  type="flex"
                  align="middle"
                  justify="center"
                  style="margin-top: 20px"
                >
                  <el-col :span="5">
                    <el-pagination
                      background
                      layout="total, prev, pager, next, sizes"
                      :total="page.total"
                      :page-sizes="[7, 10, 20, 50, 100]"
                      :page-size="page.pageSize"
                      @current-change="changePage"
                      @size-change="handleSizeChange"
                      :current-page.sync="page.currentPage"
                    ></el-pagination>
                  </el-col>
                </el-row>
      <!-- 详细信息 -->
      <el-dialog title="详细信息" width="600px" :visible.sync="exportBouncedsssss">
        <div class="big_Info"><div>教材名称：</div><div style="margin-left: 2px;">政治与历史</div></div>
        <div class="big_Info"><div>教材类型：</div><div style="margin-left: 2px;">国内教材</div></div>
        <div class="big_Info"><div>所属年纪：</div><div style="margin-left: 2px;">小学一年级</div></div>
        <div class="big_Info"><div>学科：</div><div style="margin-left: 2px;">暂无</div></div>
        <div class="big_Info"><div>教材使用时间：</div><div style="margin-left: 2px;">2092年1月1日</div></div>
        <div class="big_Info"><div>课程教材说明：</div><div style="margin-left: 2px;">暂无</div></div>
        <div class="big_Info"><div>出版社：</div><div style="margin-left: 2px;">莆田教育出版社</div></div>
        <div class="big_Info" style=" padding-bottom: 50px;">
          <div style="width: 140px;">教材备案：</div><div class="displieblok">
            <div class="itemImg">
              <img src="@/assets/img/mathematics.png" alt="">
              <div>封面</div>
            </div>
            <div class="itemImg">
              <img src="@/assets/img/mathematics.png" alt="">
              <div>封底</div>
            </div>
            <div class="itemImg">
              <img src="@/assets/img/mathematics.png" alt="">
              <div>目录</div>
            </div>
            <div class="itemImg">
              <img src="@/assets/img/mathematics.png" alt="">
              <div>说明</div>
            </div>
          </div>
        </div>
      </el-dialog>
    </el-card>
</template>

<script>
export default {
  data () {
    return {
      exportBouncedsssss: false,
      exportBounced: false,
      exportBouncedsss: false,
      optionsskc: [{
        value: '选项1',
        label: '初级中学教师资格证'
      }, {
        value: '选项2',
        label: '高级中学教师资格证'
      }, {
        value: '选项3',
        label: '小学教师资格证'
      }, {
        value: '选项4',
        label: '高等学校教师资格证'
      }],
      options: [{
        value: '选项1',
        label: '姓名'
      }, {
        value: '选项2',
        label: '身份证号码'
      }, {
        value: '选项3',
        label: '教师资格证号'
      }, {
        value: '选项4',
        label: '所属机构'
      }],
      value: '',
      value1: '',
      page: {
        // 分页数据
        total: 1000, // 总条数
        currentPage: 1, // 默认的页码 是第一个页  决定了当前页码是第几页
        pageSize: 9 // page-size的默认值是10条
      },
      tableData: [
        {
          licence: '光明顶',
          Institutional: '王小虎', // 1
          InstitutionalType: '上海市普陀区',
          Organizers: '厉害陈', // 4
          Principal: '150', // 5
          licencessss: '通过' // 5
        },
        {
          licence: '光明顶',
          Licenceissued: '2016-05-02',
          Institutional: '王小虎',
          InstitutionalType: '上海市普陀区',
          Organizers: '厉害陈',
          Principal: '150',
          licencessss: '通过' // 5
        }
      ]
    }
  },
  methods: {
    // 当选择项发生变化时会触发该事件
    handleSelectionChange (val) {
      console.log('我选择了')
      console.log(val)
      this.multipleSelection = val
    }
  }
}
</script>

<style lang="less" scoped>
  .Selectionsss {
    padding-top: 10px;
    padding-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .left_btn {

      .el-button+.el-button {
        margin-left: 0;
    }
      }
  }
  .big_Info {
    display: flex;
    padding: 0 24px 16px;
    color: rgba(0,0,0,.85);
    .displieblok {
      display: flex;
      flex-wrap: wrap;
      .itemImg:nth-child(odd) {
        margin-bottom: 20px;
        margin-right: 20px;
      }
      .itemImg {
        width: 190px;
        height: 165px;
        div {
          text-align: center;
          line-height: 70px;
          border: 1px solid #f0f0f0;
        }
        img {
          width: 100%;
          height: 100px;
        }
      }
    }
  }
.Top_seach {
  .tabelskc {
    display: flex;
      margin-bottom: 24px;
    .shuru {
      width: 100%;
    }
    .left_name {
      width: 180px;
      height: 32px;
      text-align: right;
      line-height: 32px;
    }
  }
      .blocksss {
      padding: 0 0 0 75px;
      margin-bottom: 24px;
    }
  .category {
    padding: 0 0 0 20px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    .checkboxs {
      width: 500px;
      display: flex;
      flex-wrap: wrap;
      .el-checkbox {
        margin-right: 15px;
      }
    }
  }
  p {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 20px;
    color: #000000;
  }
}
  .ExportBtn {
    width: 80%;
    margin: 0px 40px 0px;
    padding-bottom: 40px;
  }
  .el-card__body {
    padding: 0 !important;

      .el-dialog {
    margin-bottom: 0 !important;
  }

  .el-dialog__body {
    padding: 30px 20px 0;
    border-top: 1px solid #e4e4e4;
  }
  }
  .Contaner {
    position: relative;
  }
  .QueryBtn {
    display: flex;
    align-items: center;
    width: 550px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 30px;
    z-index: 1;
    .el-input__suffix {
      line-height: 50px;
    }
    input {
      height: 30px;
    }
  }
</style>
